package org.liveboardgames.agricola.vo.card
{
	import com.adobe.cairngorm.vo.IValueObject;
	
	import org.liveboardgames.agricola.model.enums.SpecialPointConditionEnum;
	import org.liveboardgames.agricola.model.enums.SpecialPointTargetEnum;
	
    [RemoteClass(alias="org.liveboardgames.agricola.domain.card.SpecialPoint")]
	[Bindable]
	public class SpecialPoint implements IValueObject
	{
		public var id:int;
		
		/** The type of item on which the condition will check (e.g. reeds). */
		public var condition:String;

		/** The quantity that is necessary to trigger the special points.*/
		public var quantity:int;

		/** The points received if the condition is met. */
		public var points:int;

		public var target:String;

		public function SpecialPoint(condition:String=null, quantity:int=0, points:int=0):void
		{
			this.condition = condition;
			this.quantity = quantity;
			this.points = points;
			this.target = SpecialPointTargetEnum.OWNER;
		}
	}
}